/**
 * 
 */
package org.tp8.ektelesis;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author tpanagopoulos
 * 
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext appContext = new ClassPathXmlApplicationContext(
				"applicationContext-main.xml");
		Ektelesis ektelesis = appContext.getBean(Ektelesis.class);
		
		if ((args.length > 0) && ("update".equalsIgnoreCase(args[0]))) {
			ektelesis.updateIndex();
		}
		
		ektelesis.initialize();
	}

}
